﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace CloudDrive.S3
{
    public class FileObject : IDisposable
    {
        private string _KeyName;
        public string KeyName
        {
            get { return _KeyName; }
        }
        private string _TempPath;
        public FileObject(string keyName, string tempPath)
        {
            _TempPath = tempPath;
            _KeyName = keyName;
        }
        public void Truncate()
        {
            FileStream stream = new FileStream(_TempPath, FileMode.Truncate);
            stream.Close();
        }

        public void Close()
        {
        }
        #region IDisposable Members

        public void Dispose()
        {
        }

        #endregion
    }
}
